package cn.hchaojie.spring.day01.beans;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Service;

@Service
public class CategoryService {
	public CategoryService() {
		System.out.println("cate!");
	}
	
	@Value("javascript")
	private String name;

	@Override
	public String toString() {
		StringBuilder builder = new StringBuilder();
		builder.append("CategoryService [name=");
		builder.append(name);
		builder.append("]");
		return builder.toString();
	}
}
